home *** CD-ROM | disk | FTP | other *** search
/ LOGIC 2000 February / LogicCd--feb.2000-mac-cdr.iso / Apple II / SHRINKIT.V3.4 / SHK3.DOCS < prev    next >
Encoding:
Text File  |  1992-03-21  |  22.1 KB  |  456 lines  |  [TEXT/pdos]

  1.  
  2. SHRINKIT FOR THE APPLE II
  3.  
  4. Program by Andy Nicholas
  5. Documentation by Karl Bunker
  6.  
  7. Send comments/suggestions on ShrinkIt to:
  8. Andy Nicholas
  9. 1180 Reed Ave., Apt. 12
  10. Sunnyvale, CA 94086
  11.  
  12. Electronic Addresses:
  13. GEnie or America-Online: shrinkit
  14. CompuServe: 70771,2615
  15. Internet: shrinkit@apple.com
  16.  
  17. Send comments/suggestions on this documentation to:
  18. Karl Bunker
  19. GEnie: k.bunker
  20.  
  21. What is ShrinkIt?
  22. -----------------
  23.      ShrinkIt is a utility program for archiving files and disks.
  24. "Archiving", in this usage, refers to the process of placing files or
  25. disks "within" another file -- the archive file. Archiving is usually
  26. done to prepare the files/disks for transmission via modem, or for
  27. storage purposes. Thus, an archive file, whether created with ShrinkIt
  28. or another archiving utility, will be a file which serves as an
  29. envelope, containing one or more other files, or complete disks. There
  30. are a number of reasons for archiving files before transmitting them
  31. with a modem. The principal reason is that an archive provides a means
  32. of sending the "attributes" of a file -- its filetype and other
  33. information -- along with the file itself. An archive also allows
  34. several related files (or an entire disk) to be packed together into a
  35. single file. True archiving utilities will also have the capability of
  36. compressing the files they contain to minimize the transmission time
  37. and disk space the archive requires.
  38.      ShrinkIt uses a highly efficient compression algorithm known as
  39. Ziv-Lempel compression, and creates archive files with a format called
  40. NuFX. ShrinkIt and ShrinkIt-GS are currently the standard archiving
  41. utilities for Apple II telecommunications. ShrinkIt can unpack files
  42. which have been archived with ShrinkIt, as well as those which have
  43. been packed with certain other file-packing utilities, such as BLU and
  44. ACU.
  45.  
  46. About These Instructions
  47. ------------------------
  48.      Most users of ShrinkIt will be interested in unpacking files they
  49. have downloaded from a Bulletin Board Service or Information Service.
  50. Others will also be using it to pack files that they want to upload to
  51. such a service. In these instructions I will first describe how one
  52. uses ShrinkIt to unpack archives, and then how to create a new archive
  53. file. Finally I will give an explanation of each of the options
  54. available in ShrinkIt's Main Menu, and fill in certain other details
  55. about ShrinkIt's functioning. If you are ONLY interested in how to
  56. unpack a file which you have downloaded, you can just read the section
  57. entitled "Unpacking an Archive", and skip the rest of this file. I
  58. will attempt to make these instructions understandable to the
  59. relatively new computer-user; if you are unfamiliar with any of the
  60. terms used, or become generally confused, you may want to consult the
  61. instruction manual to your telecommunications software, or a magazine
  62. article on telecommunicating with the Apple II.
  63.  
  64. System Requirements
  65. -------------------
  66.      ShrinkIt requires a 128K enhanced IIe, a IIc, IIc+ or IIgs.
  67. Versions of ShrinkIt for the Apple II+ and unenhanced IIe are also
  68. available. Shrinking and UnShrinking functions have been split into
  69. two different programs for these older machines. These programs are
  70. called IIPLUS.SHRINKIT and IIPLUS.UNSHRINK, and they will run on any
  71. 64K Apple II, using the 40-column screen. More information on these
  72. alternate versions of ShrinkIt will be given towards the end of these
  73. instructions.
  74.  
  75. ShrinkIt-GS
  76. -----------
  77.      These instructions are for the 8 bit version of ShrinkIt. A IIgs
  78. version of ShrinkIt is also available. Archives that have been created
  79. with ShrinkIt-GS can be unpacked with version 3.0 or later of the 8
  80. bit ShrinkIt, providing that none of the files being extracted from
  81. the archive is an "extended" GS/OS file (also know as files with
  82. resource forks). Since ProDOS-8 can't handle extended GS/OS files,
  83. someone who doesn't own a IIgs would probably have no reason to
  84. extract such a file. If you open an archive containing extended files
  85. with the 8 bit ShrinkIt, these files will be marked "forked" in the
  86. file list.
  87.  
  88. Distribution and Copyright Info
  89. -------------------------------
  90.      ShrinkIt is a Freeware program. This means that you are under no
  91. obligation to pay the author anything for it, but the copyright is
  92. retained by him. You are encouraged to distribute this program to
  93. whomever you please.
  94.  
  95. Launching ShrinkIt
  96. ------------------
  97.      ShrinkIt can be launched using standard program selectors such as
  98. Bird's Better Bye, Squirt, ProSel, or the IIgs Finder. (Some versions
  99. of ProSel 16 can't launch ShrinkIt; an update to the latest version of
  100. ProSel fixes this.) ShrinkIt is too large to be directly launched from
  101. the BASIC prompt ("]"). However, a small SYS file called
  102. SHRINKIT.SYSTEM is distributed with ShrinkIt. SHRINKIT.SYSTEM can be
  103. launched from BASIC, and it, in turn, will launch ShrinkIt.
  104.  
  105. Some Terms Defined
  106. ------------------
  107.      In the Apple II telecommunications community, there are a number
  108. of different file- and disk-packing formats which have been used over
  109. the years. Most of these formats have been superseded by ShrinkIt and
  110. its NuFX format; others are still used. These various formats are
  111. usually denoted with a three-letter suffix appended to the file's name
  112. (as in "MY.FILE.BNY"). Here are some of the suffixes you are likely to
  113. encounter, with brief descriptions of their related file formats:
  114.  
  115. .BNY: Binary II format. Though not a true archive format, a Binary II
  116.       "envelope" will preserve a file's attributes through a download
  117.       or upload. ShrinkIt can unpack .BNY files, and they can
  118.       also be automatically unpacked during downloading by many
  119.       telecommunications programs.
  120. .BQY: "Squeezed" (i.e., compressed with a different algorithm than the
  121.       one used by ShrinkIt) files within a Binary II envelope.
  122.       Created with the utility BLU, these files can be unpacked with
  123.       ShrinkIt.
  124. .QQ:  If you remove the Binary II envelope from a .BQY file, the
  125.       squeezed files it contains will have the suffix .QQ, or
  126.       sometimes .SQ. These files can be unsqueezed with ShrinkIt.
  127. .ACU: The archive format used by America Online (formerly
  128.       AppleLink Personal Edition); these files can be unpacked with
  129.       ShrinkIt. (America Online currently uses .SHK format for new
  130.       uploads.)
  131. .SHK: NuFX format; can be created and unpacked with ShrinkIt.
  132. .BXY: A NuFX archive within a Binary II envelope. This is the format
  133.       currently required for new uploads to the Apple II libraries of
  134.       GEnie and Compuserve. .BXY files can be created and unpacked
  135.       with ShrinkIt. Although this "envelope within an envelope"
  136.       format may seem redundant, it has several advantages. Ideally,
  137.       the Binary II envelope will be entirely "transparent" to end
  138.       users -- it will be automatically added by telecommunications
  139.       software during uploading, and automatically removed during
  140.       downloading. As more telecommunications programs come to support
  141.       automatic Binary II packing and unpacking, this ideal will be
  142.       increasingly realized. Thus, if your telecommunications software
  143.       supports automatic Binary II unpacking during downloading, you
  144.       can turn this option on when downloading a .BXY file. Doing this
  145.       will give you a downloaded file which is a "bare" NuFX archive.
  146.       Thanks to the Binary II envelope, this file will automatically
  147.       be given the correct name and filetype.
  148.  
  149. Unpacking an Archive
  150. --------------------
  151.      ShrinkIt starts up with a display of its Main Menu. The options
  152. in this menu are selected by using the arrow keys to highlight an
  153. option and pressing <return>, or by pressing the letter associated
  154. with the option you want.
  155.      When you have downloaded a file with one of the suffixes given
  156. above, you will want to process this file through ShrinkIt to unpack
  157. it and get at the files or disks it contains. It doesn't matter which
  158. of the packing formats your download is in; ShrinkIt will
  159. automatically recognize the format and handle the file accordingly.
  160.      To unpack an archive, you select "O-Open Archive" from the Main
  161. Menu. This will send you to a display called the File Dialog. Similar
  162. File Dialog displays are used for many of ShrinkIt's functions; the
  163. one you see after selecting Open Archive will show the title "Open
  164. Which Archive?" across the upper screen. The File Dialog is used in
  165. this case to select which archive file to "open", or unpack.
  166.      Most of the File Dialog screen is used to display a list of the
  167. files in the currently open folder. On the right side of the screen
  168. are a list of the key-commands you can use at this point:
  169.  
  170. TAB     to change disk drives.
  171. RETURN  to open a highlighted folder, or open a highlighted file.
  172. ESC     to close the current folder.
  173. OA-.    (Open Apple-period) to cancel this operation.
  174. SPACE   to select a file for opening.
  175.  
  176.      Below this list of key-commands you will see this notation:
  177.  
  178. OA-G or RETURN does function
  179. ? does tree search
  180.  
  181.      Thus, if you only want to select a single file in the File
  182. Dialog, you can just press <return> with that file highlighted. If you
  183. want to select several files to be opened in sequence, you can select
  184. the files you want with <space>, and then press either <return> or
  185. OA-G (Open Apple-G).
  186.      The "tree search" function is a very powerful feature which will
  187. be especially useful to hard disk owners. By pressing "?", you will be
  188. sent to a "directory tree display" -- a display of all the folders
  189. within the currently open folder. You can then select the folder you
  190. would like to open simply by pressing the arrow keys to highlight that
  191. folder. Press <return> and you will be back at the File Dialog screen
  192. with your selected folder open. The tree search will not function on
  193. volumes which are on an AppleShare network.
  194.      At the bottom of the "Open Which Archive?" File Dialog, there is
  195. the prompt:
  196.  
  197. Showing ARCHIVES  (OA-S)
  198.  
  199. This indicates that ShrinkIt is currently displaying only folders and
  200. files that it has identified as archive files. ShrinkIt uses two
  201. methods to decide whether a file is an archive: It checks the
  202. attributes of the file (its filetype and auxtype), and it checks to
  203. see if the filename has an appropriate suffix. When a file is
  204. downloaded, its attributes may not be preserved through the download.
  205. If your archive doesn't have EITHER the appropriate attributes, OR one
  206. of the suffixes listed above, ShrinkIt won't be able to recognize that
  207. file as an archive. If you don't see your archive file listed (after
  208. you've opened the appropriate folder), try pressing OA-S. The prompt
  209. will change to "Showing ALL FILES (OA-S)", and indeed, the File Dialog
  210. will now show all of the files in the current folder.
  211.      Press <return> to open the archive file you have selected, and
  212. ShrinkIt will display a list of the "items" -- the packed files or
  213. disks -- within that archive. At this point you have to select which
  214. items you want to extract. Usually you will want to extract all of
  215. them, but you have the option of extracting only one or a few. You can
  216. select individual items by pressing <space>, or all of them with OA-A.
  217.      When the items you want are selected, press <return>. Another
  218. File Dialog screen will be displayed, this one entitled "Destination
  219. Folder?" You use this to choose which disk and folder you want to put
  220. the new, unpacked files in. With this variation of the File Dialog,
  221. only folder (DIR) files will be displayed, and the words "<Select
  222. Current>" will be seen at the top of the list of files in each folder
  223. you open. Open the folder you want, and then press <return> with
  224. <Select Current> highlighted. The archived files will now be unpacked
  225. and saved to your disk.
  226.      Occasionally, you may want to have the different files within an
  227. archive unpacked into different destination disks or folders. If you
  228. press OA-<space> to select an item, that item will be unpacked "with
  229. prompting"; before the item is extracted, you will be prompted again
  230. to select a new destination folder for it. You can select ALL of an
  231. archive's items to be extracted with prompting by pressing OA-P.
  232.      If the archive file contains a packed disk (or disks), ShrinkIt
  233. will prompt you to select a "device" (disk drive) for the archived
  234. disk to be unpacked to.
  235.  
  236. Creating an Archive
  237. -------------------
  238.      As you might expect, creating an archive is somewhat more
  239. involved than unpacking one. However, in many ways the procedure is
  240. similar to unpacking. First you will select "N-New Archive" from
  241. ShrinkIt's main menu. You will be prompted with:
  242.  
  243. Archive What?
  244. Files   Disk     Cancel
  245.  
  246.      Archiving files will be examined first. Press <return> with
  247. "Files" highlighted, and you will be sent to the File Dialog display
  248. described above. This File Dialog screen is entitled "Archive Which
  249. Files?" and naturally, is used to select what files you want to
  250. archive. Again, you use <space> to select the files you want, and when
  251. done, press <return> or OA-G to go to the next step in creating the
  252. archive. If you press <space> with a folder (directory) highlighted,
  253. then that folder and all of its contents will be archived.
  254.      When you press <return> or OA-G, yet another File Dialog screen
  255. will appear, this one entitled "Name of Archive to Create?" At the
  256. bottom of this File Dialog screen you will see a prompt for
  257. "Filename:_______________". Using the key-commands described above,
  258. you can first open the disk and folder you want your new archive to be
  259. saved to. Then type in a filename for the archive file you are about
  260. to create. To avoid confusion, be SURE to add the correct suffix to
  261. your filename: Straight NuFX archive should have the suffix ".SHK",
  262. and NuFX-within-Binary-II archives should be suffixed ".BXY". After
  263. entering the filename, press <return>, and the archive will be
  264. created.
  265.      There is one very important point to note at this stage: If you
  266. want the new archive to be a .BXY (NuFX-within-Binary-II) archive, you
  267. must press OA-<return> (Open Apple-<return>), rather than simply
  268. <return> after typing in the filename. There is a brief notation to
  269. the right of the "Filename:" prompt to remind you of this.
  270.      The best way to create a .BXY file is to use ShrinkIt to make a
  271. .SHK file, and then let your telecommunications program add the outer
  272. Binary II envelope during uploading. However, not all
  273. telecommunications programs can do this. ShrinkIt does not allow you
  274. to add new items to a .BXY archive after it has been created. This can
  275. only be done with "bare" NuFX archives. For this reason, if you are
  276. using ShrinkIt to make a .BXY file, you must start out with all of the
  277. files you want to archive in the same folder, so you can select and
  278. pack them all at once.
  279.      If the archive is simple NuFX, you can add a packed file or disk
  280. to it after it has been created. This is done by selecting "A-Add to
  281. Archive" from ShrinkIt's main menu. You will first be prompted to
  282. select the files (or disk) you want to add, and then to select which
  283. archive you want the new items added to.
  284.      To create a new archive from an entire disk, select "N-New
  285. Archive" from the main menu, and then select "Disk" from the "Archive
  286. What?" prompt. Disks to be archived may be either 800k 3.5" or 140k
  287. 5.25" disks, and may be ProDOS, DOS 3.3, CP/M or Pascal.  Some
  288. non-standard, "customized" operating systems can also be handled. For
  289. most purposes, creating archives from individual files will be more
  290. efficient, and preferable. Disk packing is intended primarily as a
  291. means of handling data on the older operating systems.
  292.  
  293. ShrinkIt's Main Menu
  294. --------------------
  295.      The above instructions describe ShrinkIt's two main functions:
  296. creating and unpacking archives. ShrinkIt can perform a number of
  297. other functions, however. This section reviews each of the options
  298. available in ShrinkIt's main menu, in the order in which they are
  299. listed.
  300.  
  301. Q-Quit:
  302.      Exits you from ShrinkIt and returns you to your program selector.
  303. N-New Archive:
  304.      Create a new archive.
  305. O-Open Archive:
  306.      Open an existing archive to unpack it, or simply to see a list
  307.      of its contents.
  308. A-Add to Archive:
  309.      Add new items -- either packed files or a packed disk -- to an
  310.      existing archive.
  311. C-Catalog:
  312.      Display a catalog of a disk or folder. The folder or disk to be
  313.      cataloged is selected using the File Dialog screen described
  314.      above.
  315. R-Rename Files:
  316.      Allows renaming of files.
  317. X-Copy Files:
  318.      Copy files from one disk or folder to another. After selecting
  319.      this function, two File Dialog screens will appear. The first
  320.      will ask "Copy Which Files?", and the second "Destination
  321.      Folder?"
  322. D-Delete Files:
  323.      Deletes files.
  324. T-Type Files:
  325.      This option allows you to read TXT (ASCII text), AWP (AppleWorks
  326.      Word Processor), and WPF (WordPerfect Word Processor) files. A
  327.      File Dialog is used to select the file or files to be "Typed",
  328.      and then the contents of the file are displayed on-screen.
  329.      Pressing <space> moves you through the file a page at a time;
  330.      <return> will exit you from the current file and display the next
  331.      one you selected (if any). Either <esc> or OA-. (Open Apple-
  332.      period) will return you to the main menu.
  333. /-Create Folder:
  334.      Allows you to create a new folder. A File Dialog is used to
  335.      choose where to put the new folder and what to name it.
  336. F-Format Device:
  337.      Format (initialize) a 5.25" or 3.5" disk. If you are using a IIgs
  338.      and an Apple 3.5 drive, you will be prompted for an option called
  339.      "Fast-Format and Skew 2:1". This is a high-speed disk formatter
  340.      which forgoes a little error checking for the sake of rapidity.
  341.      If you'd rather do a slower, safer formatting, select "Cancel" at
  342.      this prompt.
  343. E-Erase Device:
  344.      Erase the contents of a ProDOS disk.
  345. Z-Zero ProDOS Disk:
  346.      If you are planning to create an archive from a ProDOS disk, you
  347.      should perform this operation on the disk first. It will "zero
  348.      out" all the unused blocks on the disk, making the disk archive
  349.      smaller.
  350. ?-About ShrinkIt:
  351.      Displays information about the programmer, gives distribution and
  352.      copyright information, credits those who helped out, and displays
  353.      a list of "short cut keys".
  354.  
  355. Key-Commands and Short Cut Keys
  356. -------------------------------
  357.      This section describes the key-commands which are available
  358. within many of ShrinkIt's functions. Some of them have been referred
  359. to before. A few of these commands are needed to perform certain of
  360. ShrinkIt's operations, while others are just short cuts or alternate
  361. ways of doing things. This list does not include those key-commands
  362. whose function is explained by on-screen prompts in the File Dialog
  363. displays.
  364.  
  365. OA-up arrow and OA-down arrow: In the File Dialog, the arrow keys
  366. together with Open Apple will move you through the file list quickly.
  367.  
  368. OA-A: Select all files in the open folder, or all items in the open
  369. archive.
  370.  
  371. OA-<space>: Select an archive item to be extracted (unpacked) with
  372. separate prompting for a destination folder.
  373.  
  374. OA-P: Select all items in an archive to be extracted with prompting.
  375.  
  376. OA-E: In the File Dialog, eject the current 3.5" disk.
  377.  
  378. OA-O: In the File Dialog, display a list of online volumes.
  379.  
  380. /: In the File Dialog, instead of selecting a pathname by opening the
  381. correct disk and folder(s), you can also type it in; just press "/" to
  382. start the full pathname. If you type the pathname of a folder, that
  383. folder will be opened and displayed in the File Dialog. If you type
  384. the full pathname of a file, the operation you have selected (Type,
  385. Open Archive, etc.) will be performed on that file.
  386.  
  387. U: If, for some reason, you want to archive a file without compressing
  388. it, you can do so by pressing "U" to select it instead of <space>.
  389.  
  390. OA-U: You can select all of the files in the open folder to be
  391. archived without compression by pressing OA-U.
  392.  
  393. OA-B: When scrolling through the list of items in an open archive,
  394. this will send you to the beginning of the list. When "Typing" a file,
  395. OA-B sends you to the beginning of the file.
  396.  
  397.  .: At most points in ShrinkIt, you can simply press "." (period) to
  398. cancel an operation, rather than OA-. (Open Apple-period).
  399.  
  400. ShrinkIt for the ][+ and unenhanced //e
  401. ---------------------------------------
  402.      As mentioned earlier, if you are using an unenhanced //e or a
  403. ][+, you will have to use alternate versions of ShrinkIt. ShrinkIt for
  404. these machines is broken up into two programs: IIPLUS.SHRINKIT for
  405. creating archives and IIPLUS.UNSHRINK for unpacking archives. To an
  406. extent, the above instructions apply to the IIPLUS ShrinkIts, but
  407. there are some important differences.
  408.      In general, the IIPLUS ShrinkIts are simpler than the standard
  409. version. The 40 column screen is used, so the on-screen information is
  410. minimal. None of the utilities, such as copying files, are available;
  411. these programs only create or unpack archives.
  412.      The Open Apple (OA) key is not used. Some of the OA key commands
  413. are replaced with Control key commands, but others, such as OA-A
  414. (select all) are not implemented. To select an archived file to be
  415. extracted with separate prompting, press "P" (instead of OA-<space>).
  416.      In the File Dialogs of the IIPLUS ShrinkIts, instead of pressing
  417. <esc> to close the current folder, you must press <return> with the
  418. words "Parent Directory" highlighted.
  419.  
  420.  
  421. For More Technical Information...
  422. ---------------------------------
  423.      If you want to know more about data compression:
  424.  
  425. Bell, T., Cleary, J., and Witten, I. Text Compression.  Prentice-Hall, 1990.
  426. ISBN 0-13-911991-4
  427.  
  428. Ziv, J. and Lempel, A. A Universal Algorithm for Sequential Data
  429. Compression. IEEE Trans. Information Theory, Vol. IT-23, No. 3, May
  430. 1977, pp. 337-343.
  431.  
  432. Ziv, J. and Lempel, A. Compression of Individual Sequences via
  433. Variable-Rate Coding, IEEE Trans. Information Theory, Vol. IT-24, No.
  434. 5, Sept. 1978, pp. 5306.
  435.  
  436. Storer, James A. Data Compression: Methods and Theory. Computer
  437. Science Press, 1988.  ISBN 0-7167-8156-5.
  438.  
  439. Held, Gilbert. Data Compression, Techniques and Applications, Hardware
  440. and Software Considerations.  John Wiley & Sons, 1987
  441.  
  442. Welch, T. A Technique for High-Performance Data Compression. IEEE
  443. Computer, Vol. 17, No. 6, June 1984, pp. 8-19.
  444.  
  445. If you want to know more about the NuFX ("nu-eff-ex") archive format,
  446. please consult the Apple Filetype Technote for $E0/$8002.
  447.  
  448.  
  449. Trademarks
  450. ----------
  451. Apple, Apple II, IIgs, GS/OS, and ProDOS are registered trademarks of
  452. Apple Computer Inc. America Online, ACU and AppleLink are registered
  453. trademarks of Quantum Computer Services. ShrinkIt is a trademark
  454. of Andrew E. Nicholas.
  455.  
  456.